//
//  Line.m
//  DemoDrawingShapesInCanvasUsingObjects
//
//  Created by duc nguyen van on 8/15/11.
//  Copyright 2011 STU. All rights reserved.
//

#import "Line.h"


@implementation Line

-(void)drawRect:(CGRect)rect{
	CGContextRef contextRef = UIGraphicsGetCurrentContext();
	CGContextSetRGBStrokeColor(contextRef, 1.0, 0, 0, 1);
	CGContextMoveToPoint(contextRef, 0, rect.size.height / 2);
	CGContextAddLineToPoint(contextRef, rect.size.width, rect.size.height / 2);
	CGContextStrokePath(contextRef);
}

@end
